package com.qhong.test.config;


import com.qhong.spring.annotation.Bean;
import com.qhong.spring.annotation.ComponentScan;
import com.qhong.spring.annotation.Configuration;
import com.qhong.test.TestUtils;

//使用定义@Configuration定义该类是一个配置类
@Configuration
//使用ComponentScan设置扫描包的路径
@ComponentScan(basePackages={"com.qhong"})
public class Config {

	@Bean
	public Object getTestUtils(){
		TestUtils tu=new TestUtils();
		return tu;
	}

}
